<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>登录</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" / />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link href="__PUBLIC__/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/jquery.js"></script>
<script type="text/javascript">
	$(function(){
		$('.submit').mouseover(function(){  
			$(this).css('padding-top','1px');
		}).mouseout(function(){ $(this).css('padding-top','0px');});
		$('.reset').mouseover(function(){  
			$(this).css('padding-top','1px');
		}).mouseout(function(){ $(this).css('padding-top','0px');});
		
		$('.username').focus(function(){ $(this).css('border','solid 1px #79aaf4');
		}).blur(function(){ $(this).css('border','solid 1px #2e5f70');});
		$('.password').focus(function(){ $(this).css('border','solid 1px #79aaf4');
		}).blur(function(){ $(this).css('border','solid 1px #2e5f70');});
		
	})
	function check(){
		var name = document.getElementById("username");
		if(name.value==""){
			alert("用户名不能为空！");
			return false;
		}
		var passworld = document.getElementById("password");
		if(passworld.value==""){
			alert("密码不能为空！");
			return false;
		}
	}
	function resetBtn(fm){
		fm.reset();
		return false;
	}
	</script>
</head>
<body>
	<div class="container">
		<div class="content">
			<div class="login" id="login">
				<form name="login" method="post" action="__URL__/doLoginByWeb">
					<div class="con1">
						<span>用户名</span>
						<input type="text" id="username" name="username" class="username" onclick="javascript:this.select();" /><br />
					</div>
					<div class="con2">
						<span>密&nbsp;&nbsp;码</span>
						<input type="password" id="password" name="password" class="password" onclick="javascript:this.select();" /><br />
					</div>
					<div class="submit">
						<input type="image" name="submit" 
							src="__PUBLIC__/img/ok.png"
							onclick="return check()" />
					</div>
					<input type="image" name="reset" class="reset"
						src="__PUBLIC__/img/reset.png"
						onclick="return resetBtn(this.form);" />

				</form>
			</div>
		</div>
	</div>
</body>
</html>

